<template>
  <div class="xtx-bread-item">
    <RouterLink v-if="to" :to="to"><slot/></RouterLink>
    <span v-else> <slot /> </span>
  </div>

</template>
  <!-- <i class="iconfont icon-angle-right"></i> -->
  <!-- 这里有一个bug。 -->
<script>
export default {
  name: 'XtxBreadItem',
  props: {
    to: {
      type: [String, Object],
      default: ''
    }
  }
}
</script>

<style></style>
